#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.db import models
from django.contrib.auth.models import User
from stdimage import StdImageField

GENDER_CHOIES = (\
    (u'N', u'不选择'),
    (u'M', u'男性'),
    (u'F', u'女性'),
)

class Profile(models.Model):
    user      = models.ForeignKey(User, null = True, blank = True)
    avatar    = models.StdImageField(upload_to = 'avatar', size = (100, 100, True), null = True, blank = True)
    signature = models.CharField(max_length = 255, null = True, blank = True)
    gender    = models.CharField(max_length = 1, null = True, blank = True)
    birth_day = models.DateField(null = True, blank = True)

    website   = models.CharField(max_length = 255, null = True, blank = True)
    qq        = models.CharField(max_length = 20, null = True, blank = True)
    icq       = models.CharField(max_length = 20, null = True, blank = True)
    yahoo     = models.CharField(max_length = 255, null = True, blank = True)
    msn       = models.CharField(max_length = 255, null = True, blank = True)